#ifndef TRANSACTION_H
#define TRANSACTION_H
#include <mutex>
#include <stdint.h>


class TransLog{

};

class Transaction{
private:
	uint64_t log_index;
	std::mutex lock;
	TransLog *log;

public:
	Transaction();
	~Transaction();
	uint64_t TransBegin();
	void TransLogContext(uint64_t trans_id, void *buffer, uint64_t size);
	void TransCommit(uint64_t trans_id);
	void TransAbort(uint64_t trans_id);

};

#endif
